import com.troyworks.mediaplayer.MixinPlayer;
import com.troyworks.framework.ui.MCButton;
import com.troyworks.mediaplayer.ui.SeekBarNav;
/**
 * @author Troy Gardner
 */
class com.troyworks.mediaplayer.TestMixinPlayer {
	
	/**************************************************
	 * Called by the MTASC compiler with the '-main' flag
	 * set.
	 * 
	 */
	public static function main(container : MovieClip) : Void {
				trace("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
		trace("aaaaaaaaaaaaaaaaaaaacom.troyworks.mediaplayer.TestMixinPlayeraaaaaaaaaaaaaaaaaaaaaaaaaaaa");
		trace("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
		trace("aaaaaaaaaaaaaaaaaaacom.troyworks.framework.ui.MCButton aaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
		trace("aaaaaaaaaaaaaaaaaaaa " + com.troyworks.framework.ui.MCButton.EVTD_CLICK+ " aaaaaaaaaaaaaaaaaaaaaaaaaaaa");
		trace("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
	
		//=========== Register Classes ================/
		Object.registerClass("PlayerNavButtonBar", com.troyworks.mediaplayer.ui.PlayerNav);
		Object.registerClass("SeekBarNav",SeekBarNav);
		
		Object.registerClass("FastForwardClipButton",MCButton);
		Object.registerClass("FullScreenClipButton",MCButton);
		Object.registerClass("PauseClipButton",MCButton);
		Object.registerClass("PlayClipButton",MCButton);
		Object.registerClass("PrevClipButton",MCButton);
		Object.registerClass("RecordClipButton",MCButton);
		Object.registerClass("RewindClipButton",MCButton);
		Object.registerClass("ReplayClipButton",MCButton);

		
		var _mc = container.createEmptyMovieClip("test_mc", 1);
		_mc.loadMovie("content/Animal Antics A-Z_Ant.swf");
		var mix_mc:MixinPlayer = new MixinPlayer(_mc, container._parent);

		/*onEnterFrame = function(){
		trace("mix_mc.base_mc.playState  "  +mix_mc.actual_mc.playState );
		if(mix_mc.actual_mc.playState == "readyToPlay"){
			trace("XXXXXXXXXXXXX STARTING PLAY XXXXXXXXXXX");
			PlayerNavButtonBar_mc.playClipBtn_mc.onRelease = function(){
				_root.mix_mc.actual_mc.__mxpPlay();
			}
			//
		}*/
		//========== notify parent of load =================//
		container.isLoaded = true;
		container.isReady = true;
		container._parent.onAssetLoaded();
    }


}